<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<!DOCTYPE HTML>
<html>
<head>
	<%@include file="/WEB-INF/views/include.jsp"%>
	
</head>
<body>
<nav class="breadcrumb">
	<i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 
	招聘管理 <span class="c-gray en">&gt;</span> 招聘列表 <span class="c-gray en">&gt;</span> 投递记录查看 
	<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" >
		<i class="Hui-iconfont">&#xe68f;</i>
	</a>
</nav>
<form action="${base}/admin/recruit/list_recruit_history.do?recruitId=${recruitId}" method="post">
	<div class="page-container">
<!-- 		<div class="text-c"> 日期范围： -->
<!-- 			<input type="text" name="firstTime" value="${firstTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'logmax\')}'})" id="logmin" class="input-text Wdate" style="width:120px;"> -->
<!-- 			- -->
<!-- 			<input type="text" name="endTime" value="${endTime}" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'logmin\')}'})" id="logmax" class="input-text Wdate" style="width:120px;"> -->
<!-- 			<input type="text" name="realname" id="" value="${realname}" placeholder="投递人姓名" style="width:250px" class="input-text"> -->
<!-- 			<button name="" id="" class="btn btn-success" type="submit"><i class="Hui-iconfont">&#xe665;</i>搜索</button> -->
<!-- 		</div> -->
		<div class="cl pd-5 bg-1 bk-gray mt-20"> 
			<span class="r">共有数据：<strong>${list.size()}</strong> 条</span> 
		</div>
		<div class="mt-20">
			<table class="table table-border table-bordered table-bg table-hover table-sort">
				<thead>
					<tr class="text-c">
						<th width="25"><input type="checkbox" name="" value=""></th>
						<th width="80">序号</th>
						<th>投递人</th>
						<th>类型</th>
						<th>手机号</th>
						<th>邮箱</th>
						<th>投递时间</th>
						<th width="80">操作</th>
					</tr>
				</thead>
				<tbody>
					<c:forEach items="${list}" var="list" varStatus="status">
						<tr class="text-c">
							<td><input type="checkbox" value="" name=""></td>
							<td>${status.index+1}</td>
							<td>${list.user.realname}</td>
							<td>
								<c:if test="${list.user.type == 1}">高管</c:if>
								<c:if test="${list.user.type == 2}">合伙人</c:if>
							</td>
							<td>${list.user.mobilePhone}</td>
							<td>${list.user.email}</td>
							<td><fmt:formatDate value="${list.created}"  pattern="yyyy-MM-dd HH:mm:ss" type="date" dateStyle="long" /></td>
							<td class="f-14 td-manage">
								<a style="text-decoration:none" class="ml-5" onClick="user_show('投递人详情','${base}/admin/executives/view/${list.userId}.do')" href="javascript:;" title="预览"><i class="Hui-iconfont">&#xe695;</i></a>
							</td>
						</tr>
					</c:forEach>
				</tbody>
			</table>
		</div>
	</div>
</form>
<!-- <script type="text/javascript" src="${base}/common/js/deliver_history/list.js?v=${v}"></script> -->
<script type="text/javascript">
	$('.table-sort').dataTable({
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,7]}// 不参与排序的列
		]
	});
	
	/*投递人详细信息*/
	function user_show(title,url){
		var index = layer.open({
			type: 2,
			title: title,
			content: url
		});
		layer.full(index);
	}
</script>
</body>
</html>